import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

@SuppressWarnings("serial")
public class Determinant_Alus extends JPanel implements ActionListener {

	JButton tagasi;
	JPanel ylemine;
	Determinant deter;

	public Determinant_Alus() {

		setLayout(new BorderLayout(3, 3));

		ylemine = new JPanel();
		ylemine.setLayout(new FlowLayout(FlowLayout.LEFT));
		tagasi = new JButton("<< TAGASI");
		tagasi.addActionListener(this);
		ylemine.add(tagasi);
		ylemine.setBorder(BorderFactory.createEtchedBorder());
		add(ylemine, BorderLayout.NORTH);

		deter = new Determinant();
		add(deter, BorderLayout.CENTER);

	}

	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand() == "<< TAGASI") {
			this.setVisible(false);
		}

	}

}
